		var menuActive ;
		function ChuotVao(src){
			//alert(src);
			if(!src.contains(event.fromElement)){				
				src.style.cursor = 'hand';
				if(src.style.background != 'url(../images/menuleft_new.png)' )
					src.style.background='url(../images/menuleft_new.png)';
			}
		}
		function buttonVao(src){
			if(!src.contains(event.fromElement)){				
				src.style.cursor = 'hand';
				if(src.style.background != 'url(../images/button_hover.png)'){
					src.style.background='url(../images/button_visited.png)';
					src.style.color = "#FFFFFF";
				}
			}
		}
		function ttthVao(src){
			if(!src.contains(event.fromElement)){				
				src.style.cursor = 'hand';
				if(src.style.background != 'url(../images/tintuc_tonghop_hover.png)'){
					src.style.background='url(../images/tintuc_tonghop_visited.png)';
					src.style.color = "#FFFFFF";
				}
			}
		}
		function ChuotRa(src){
			if(!src.contains(event.toElement)){
				src.style.cursor='default';
				if(src.style.background != 'url(../images/menuleft_visited.png)' ){
					src.style.background='url(../images/menuleft_visited.png)';
					src.style.color = "#FFFFFF";
				}
			}
		}
		function buttonRa(src){
			if(!src.contains(event.toElement)){
				src.style.cursor='default';
				if(src.style.background != 'url(../images/button_hover.png)' ){
					src.style.background='url(../images/button.png)';
					src.style.color = "#000000";
				}
			}
		}
		function ttthRa(src){
			if(!src.contains(event.toElement)){
				src.style.cursor='default';
				if(src.style.background != 'url(../images/tintuc_tonghop_hover.png)' ){
					src.style.background='url(../images/tintuc_tonghop.png)';
					src.style.color = "#000000";
				}
			}
		}
		function ChuotVaoSub(src){
			if(!src.contains(event.fromElement)){				
				src.style.cursor = 'hand';
				if(src.style.backgroundColor != "#ffffb3" )
					src.style.backgroundColor='#990000';
			}
		}
		
		function ChuotRaSub(src){
			if(!src.contains(event.toElement)){
				src.style.cursor='default';
				//alert(src.style.backgroundColor);
				if(src.style.backgroundColor != "#ffffb3" ){
					src.style.backgroundColor='#E9995F';
				}
			}
		}
		
		function OnclickSub(src){
			if(!src.contains(event.toElement)){
				//src.style.cursor='default';
				//alert(menuActive);
				if( menuActive != undefined ){
					//alert(menuActive.className);
					if(menuActive.className =="menuright2")
						menuActive.style.background ='#E9995F';					
					else menuActive.style.background ='url(../images/menuleft_visited.png)';					
				}
				src.style.background='url(../images/menuleft_new.png)';
				src.style.color = "#000000";
				menuActive = src;
			}
		}
		function OnclickButtonSub(src){
			if(!src.contains(event.toElement)){
				//src.style.cursor='default';
				//alert(menuActive);
				if( menuActive != undefined ){
					//alert(menuActive.className);
					if(menuActive.className =="menuright2")
						menuActive.style.backgroundColor ='#E9995F';
					else {
						menuActive.style.background ='url(../images/button.png)';		
						
					}
										
				}
				src.style.background='url(../images/button_hover.png)';
				src.style.color = "#000000";
				menuActive = src;
			}
		}
		function OnclickttthSub(src){
			if(!src.contains(event.toElement)){
				//src.style.cursor='default';
				//alert(menuActive);
				if( menuActive != undefined ){
					//alert(menuActive.className);
					if(menuActive.className =="menuright2")
						menuActive.style.backgroundColor ='#E9995F';
					else menuActive.style.background ='url(../images/tintuc_tonghop.png)';		
										
				}
				src.style.background='url(../images/tintuc_tonghop_hover.png)';
				src.style.color = "#000000";
				menuActive = src;
			}
		}
		function ClkChuot(src) {
			if(event.srcElement.tagName=='TD'){
				src.children.tags('A')[0].click();
			}
		}
		// ========strart open popup images_library=========================
		function ViewImagesLibrary(id)
		{
			// Create a random number 
			var ran_number= Math.random()*5;  
			strUrl = "../run/v_images_library_view.php?id=" + id + " &randomNumer=" + ran_number;
			//window.open(strUrl);
			window.open(strUrl,'name','height=600,width=800,toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no, resizable=yes');
			//window.open('','name','height=200,width=150');
			//window.showModalDialog(strUrl);
			return true;    
		}
		// =================strart open popup images_library===============================================

